﻿

namespace SG
{
    public enum ELanguageType
    {
        CN = 0,
        US = 1,
        JP = 2,
        TH = 3,
        MY = 4,
        NUM,
    }
    public enum VolumeType
    {
        Main,
        Music,
        Effect
    }
    public enum QualitySetType
    {
        Total = 1, // 整体
        Texture, //贴图
        Shadow, // 阴影
        Effect, //特效
        Antialiasing, // 抗锯齿
        Bloom //辉光
    }

    public enum QualityLevel
    {
        Custom,
        High,
        Middle,
        Low,
    }

    [System.Serializable]
    public class GameSettingData
    {
        //声音
        public int mVolumeMain = 100;
        public int mVolumeMusic = 100;
        public int mVolumeEffect = 100;

        //图像
        public QualityLevel mQualityTotal = QualityLevel.High;
        public QualityLevel mQualityTexture = QualityLevel.High;
        public QualityLevel mQualityShadow = QualityLevel.High;
        public QualityLevel mQualityEffect = QualityLevel.High;
        public QualityLevel mQualityAntialiasing = QualityLevel.High;
        public QualityLevel mQualityLight = QualityLevel.High;

        //语言
        public ELanguageType mTextLanguage = ELanguageType.CN;
        public ELanguageType mAudioLanguage = ELanguageType.CN;
        //多人战设置
        public int showInvite = 0;
        public int inFriend = 1;//邀请好友
        public int inGuild = 1;//邀请公会成员
        public int inAll = 1;//邀请所有

        public void DoDefaultSet()
        {

            mVolumeMain = 100;

            mVolumeMusic = 100;

            mVolumeEffect = 100;

            //图像

            mQualityTotal = QualityLevel.High;


            mQualityTexture = QualityLevel.High;

            mQualityShadow = QualityLevel.High;

            mQualityEffect = QualityLevel.High;

            mQualityAntialiasing = QualityLevel.High;

            mQualityLight = QualityLevel.High;

            //语言
            mTextLanguage = ELanguageType.CN;

            mAudioLanguage = ELanguageType.CN;
        }
    }
}